<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="<?php echo base_url("theme/js");?>/jquery-1.7.2.min.js"></script>
<link type="text/css" rel="stylesheet" href="<?php echo base_url("theme");?>/reset.css" media="screen" />
<link type="text/css" rel="stylesheet" href="<?php echo base_url("theme");?>/admin.css" media="screen" />
<script type="text/javascript" src="<?php echo base_url("nicEdit");?>/nicEdit.js"></script>
<title>编辑</title>
</head>
<!-- 编辑 -->


<?php

?>

<?php switch($edit_type) : case 'menu' : //====编辑导航================================== ?>

<div class="box">
  <div class="hd">编辑导航 &darr;</div>
  <div class="bd">
    <form action="<?php
            echo site_url("admin/menu_manag/edit_menu");
            ?>" method="post" enctype="multipart/form-data">
      <table class="formtable">
        <tr>
          <th>导航名称</th>
          <td><input type="text" size="30" name="name" value="<?php echo $row['name']; ?>" /></td>
        </tr>
        <tr>
          <th>菜单类型</th>
          <!-- 类型 -->
          <td>
          <select name="type" id="type" disabled="disabled">
              <?php 
                    
                    foreach($menu_type_array as $key=>$val){
                    if($key==$row["controller_name"]){
                  echo "<option value =\"{$val}\" selected>{$key}</option>";
                        
                    }else{
                        
                        
                        echo "<option value =\"{$val}\" >{$key}</option>";
                    }
                        
                        
                    }
                    //echo form_dropdown('bannerurl',array('0'=>'单页','1'=>'有实际内容的页'),0);
                    ?>
            </select></td>
        </tr>
        <tr>
          <th>Banner</th>
          <td><input type="file" size="30" name="banner" value="<?php echo $row['banner']; ?>" /></td>
        </tr>
        <tr>
          <th>Banner链接</th>
          <td><input type="text" size="30" name="banner_url"  value="<?php echo $row['banner_url']; ?>"/></td>
        </tr>
        <tr>
          <th>内容</th>
          <td><script type="text/javascript">
					bkLib.onDomLoaded(function() {
						new nicEditor({fullPanel:true,iconsPath:'<?php echo base_url("nicEdit");?>/nicEditorIcons.gif'}).panelInstance('content');
					});
					</script>
       <textarea rows="15" cols="90" name="content" id="content"><?php echo $row['content']; ?></textarea></td>
        </tr>
        <tr>
          <th>顺序</th>
          <td><input type="text" size="5" name="order" value="<?php echo $row['morder']; ?>" /></td>
        </tr>
        <tr>
          <th>
          <input type="hidden" name="id" value="<?php echo $row['id']; ?>" /></th>
          <td><input type="submit" name="edit_submit" value="保存修改" /></td>
        </tr>
      </table>
    </form>
  </div>
</div>


<?php break; case 'person' :  //====编辑团队成员================================== ?>

<div class="box">
    <div class="hd">编辑团队成员 &darr;</div>
    <div class="bd">
        <form action="<?php
            echo site_url("admin/person_manag/edit_person");
            ?>" method="post" enctype="multipart/form-data">
            <table class="formtable">
                <tr>
                    <th>姓名</th>
                    <td><input type="text" size="30" name="name" value="<?php echo $row['name']; ?>" /></td>
                </tr>
                <tr>
                    <th>性别</th>
                    <td><?php echo form_dropdown('sex', array('0' => '女士', '1' => '先生'), 1); ?></td>
                </tr>
                <tr>
                    <th>职位</th>
                    <td><input type="text" size="30" name="jobs" value="<?php echo $row['jobs']; ?>" /></td>
                </tr>
                <tr>
                    <th>照片</th>
                    <td><input type="file" size="30" name="photo" /></td>
                </tr>
                <tr>
                    <th>简介</th>
                    <td><script type="text/javascript">
                        bkLib.onDomLoaded(function() {
                            new nicEditor({fullPanel:true,iconsPath:'<?php echo base_url("nicEdit"); ?>/nicEditorIcons.gif'}).panelInstance('desc');
                        });
                        </script>
                        <textarea rows="15" cols="90" name="desc" id="desc"><?php echo $row['desciption']; ?></textarea></td>
                </tr>
                <tr>
                    <th>顺序</th>
                    <td><input type="text" size="5" name="order" value="<?php echo $row['morder']; ?>" /></td>
                </tr>
                <tr>
                    <th><input type="hidden" name="id" value="<?php echo $row['id']; ?>" /></th>
                    <td><input type="submit" name="edit_submit" value="保存修改" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>



<?php break; case 'videoAlbum' :  //====编辑视频分类================================== ?>

<div class="box">
    <div class="hd">编辑视频分类 &darr;</div>
    <div class="bd">
            <form action="<?php 
            echo site_url("admin/video_manag/edit_videoAlbum");
            
            ?>" method="post" enctype="multipart/form-data">
        	<table class="formtable">
            	<tr>
                	<th>分类名称</th>
                    <td><input type="text" size="30" name="title" value="<?php echo $row['title']; ?>" /></td>
                </tr>
                <tr>
                	<th>分类描述</th>
                    <td>
                    <textarea rows="5" cols="70" name="desc" id="desc"><?php echo $row['desc']; ?></textarea></td>
                </tr>
                <tr>
                	<th>顺序</th>
                    <td><input type="text" size="5" name="order" value="<?php echo $row['order']; ?>" /></td>
                </tr>
                <tr>
                	<th><input name="album_type" type="hidden" value="1">
                    <input type="hidden" name="id" value="<?php echo $row['id']; ?>" /></th>
                    <td><input type="submit" name="edit_submit" value="保存修改" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>




<?php break; case 'videoSingle' :  //====编辑单个================================== ?>

<div class="box">
    <div class="hd">编辑单个视频 &darr;</div>
    <div class="bd">
            <form action="<?php 
            echo site_url("admin/upVideo_manag/edit_videoSingle");
            
            ?>" method="post" enctype="multipart/form-data">
        	<table class="formtable">
            	<tr>
                	<th>分类名称</th>
                    <td><input type="text" size="30" name="title" value="<?php echo $row['title']; ?>" /></td>
                </tr>
                <tr>
                	<th>分类描述</th>
                    <td>
                    <textarea rows="5" cols="70" name="desc" id="desc"><?php echo $row['desc']; ?></textarea></td>
                </tr>
                <tr>
                	<th>顺序</th>
                    <td><input type="text" size="5" name="order" value="<?php echo $row['order']; ?>" /></td>
                </tr>
                <tr>
                	<th><input name="album_type" type="hidden" value="1">
                    <input type="hidden" name="id" value="<?php echo $row['id']; ?>" /></th>
                    <td><input type="submit" name="edit_submit" value="保存修改" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>




<?php break; case 'photoAlbum' :  //====编辑视频分类================================== ?>

<div class="box">
    <div class="hd">编辑相册 &darr;</div>
    <div class="bd">
            <form action="<?php 
            echo site_url("admin/photo_manag/edit_photoAlbum");            
            ?>" method="post" enctype="multipart/form-data">
        	<table class="formtable">
            	<tr>
                	<th>相册名称</th>
                    <td><input type="text" size="30" name="title" value="<?php echo $row['title']; ?>" /></td>
                </tr>
                <tr>
                	<th>相册封面</th>
                    <td><input type="file" size="30" name="cover"  /></td> 
                
                </tr>
                <tr>
                	<th>相册描述</th>
                    <td>
                    <textarea rows="5" cols="70" name="desc" id="desc"><?php echo $row['desc']; ?></textarea></td>
                </tr>
                <tr>
                	<th>顺序</th>
                    <td><input type="text" size="5" name="order" value="<?php echo $row['order']; ?>" /></td>
                </tr>
                <tr>
                	<th><input name="album_type" type="hidden" value="0">
                    <input type="hidden" name="id" value="<?php echo $row['id']; ?>" /></th>
                    <td><input type="submit" name="edit_submit" value="保存修改" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>



<?php break; case 'edit_links' :  //====编辑视频分类================================== ?>

<div class="box">
    <div class="hd">编辑友情链接 &darr;</div>
    <div class="bd">
           <form action="<?php 
           echo site_url("admin/links_manag/add_link");
            ?>" method="post" enctype="multipart/form-data">
      <table class="formtable">
        <tr>
          <th>链接名称</th>
          <td><input type="text" size="30" name="title" value="<?php echo $row['title']; ?>" /></td>
        </tr>
        <tr>
          <th>链接地址</th>
          <td><input type="text" size="30" name="url" value="<?php echo $row['url']; ?>" /></td>
        </tr>
        <tr>
          <th>链接图片</th>
          <td><input type="file" size="30" name="img" /></td>
        </tr>
        <tr>
          <th>顺序</th>
          <td><input type="text" size="5" name="order" value="<?php echo $row['order']; ?>" /></td>
        </tr>
        <tr>
          <th><input type="hidden" name="id" value="<?php echo $row['id']; ?>" /></th>
          <td><input type="submit" name="edit_submit" value="保存修改" /></td>
        </tr>
      </table>
    </form>
    </div>
</div>





<?php break; endswitch;  ?>



















<body>
</body>
</html>